package by.bsuir.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "index")
public class NodePers implements Serializable {

    private static final long serialVersionUID = 7985025645080442654L;

    public NodePers() {
    }

    public NodePers(Long id, byte[] node) {
        super();
        this.id = id;
        this.node = node;
    }

    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE)
    private Long id;

    @Column(name="node")
    private byte[] node;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public byte[] getNode() {
        return node;
    }

    public void setNode(byte[] node) {
        this.node = node;
    }
}
